"""
1.创建一个Teacher类继承object
2.创建构造方法有以下属性，name age gender tel  course（课程）
3.写出她的模仿方法
4.测试一下是否有效输出对象属性
"""


class Teacher(object):
    def __init__(self, name, age, gender, tel, course):
        self.name = name
        self.age = age
        self.gender = gender
        self.tel = tel
        self.course = course

    def __str__(self):
        return f"Teacher: {self.name}\nAge: {self.age}\nGender: {self.gender}\nTel: {self.tel}\nCourse: {self.course}"

    def __repr__(self):
        return f"Teacher(name='{self.name}', age={self.age}, gender='{self.gender}', tel='{self.tel}', course='{self.course}')"

# 测试
# teacher = Teacher("张老师", 30, "女", "123456789", "数学")
# print(teacher)
